//
//  TabBarController.m
//  RelationshipIPhone
//
//  Created by Vladimir Oboroc on 11/19/12.
//  Copyright (c) 2012 Vladimir Oboroc. All rights reserved.
//

#import "TabBarController.h"
#import "FirstController.h"
#import "WorkController.h"
#import "PersonalController.h"
#import "InfoController.h"

//----------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------
@implementation TabBarController : UITabBarController

//----------------------------------------------------------------------------------------------------------------------
-(id)init
{
    self = [super init];
    
    if (self)
    {
        FirstController    *fc = [[FirstController alloc] init];
        WorkController     *wc = [[WorkController alloc] init];
        PersonalController *pc = [[PersonalController alloc] init];
        InfoController     *ic = [[InfoController alloc] init];
        
        fc.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemContacts  tag:0];
        wc.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured  tag:1];
        pc.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch    tag:2];
        ic.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemBookmarks tag:3];
        
        self.viewControllers = @[fc, wc, pc, ic];
    }
    
    return self;
}

//----------------------------------------------------------------------------------------------------------------------
@end

//----------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------
